<template>
  <div class="nav-bar">
    <div class="nav-bar-left">
      <slot name="left"></slot>
    </div>
    <div class="nav-bar-content">
      <slot name="content">
        <div>我是默认内容</div>
      </slot>
    </div>
    <div class="nav-bar-right">
      <slot name="right"></slot>
    </div>
  </div>

  <div class="other">
    <slot name="default"></slot>
  </div>
</template>

<script>
export default {
  props: {
    navBarLeft: {
      type: String,
      default: '返回',
    },
    navBavRight: {
      type: String,
      default: '确认',
    },
  },
}
</script>

<style scoped>
.nav-bar {
  display: flex;
  height: 44px;
  line-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 5px;
  border-bottom: 1px solid #ccc;
  text-align: center;
}
.nav-bar-left {
  width: 80px;
}
.nav-bar-content {
  flex: 1;
}
.nav-bar-right {
  width: 80px;
}
</style>
